# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-python-monkey-business
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=python-monkey-business
pkgver=1.0.0
pkgrel=1
pkgdesc="Utility functions for monkey-patching python code"
url="https://pypi.org/project/python-monkey-business/"
arch="noarch"
license="BSD"
depends="py3-six"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/p/python-monkey-business/python-monkey-business-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
options="!check" # No test suite"
subpackages="$pkgname-pyc"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
a0d5985cd73cbae5551ddb003067f4e5bd65e9b19475903bb041ef3ef2f4ec21d52a37c70b230e989501588948b5585020932aae56ca0634e4bad48159857cc0  py3-python-monkey-business-1.0.0.tar.gz
"
